﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Pages_Cross_Page_Posting2 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Page.PreviousPage == null)
        {
            LabelData.Text = "No previous page in post";
        }
        else
        {
            LabelData.Text =
            Server.HtmlEncode(((TextBox)PreviousPage.FindControl("TextBox1")).Text);
        }
    }
}